package com.kaily.timemanager.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.app.common.util.Logger;
import com.app.common.util.Tools;
import com.app.common.view.slidebar.SideBarLayout;
import com.kaily.timemanager.R;
import com.kaily.timemanager.data.contract.TaskContract;
import com.kaily.timemanager.data.presenter.TaskPresenterImpl;
import com.kaily.timemanager.obj.Task;
import com.kaily.timemanager.obj.TaskClass;
import com.kaily.timemanager.view.ITaskClassActionListener;
import com.kaily.timemanager.view.TaskClassLayout;
import com.kaily.timemanager.view.TaskInfoLayout;
import com.kaily.timemanager.view.TaskLayout;

import java.util.ArrayList;
import java.util.List;

import butterknife.ButterKnife;
import butterknife.InjectView;


/**
 * Created by zhoulikai on 17/2/25.
 */

public class IndexFragment extends AppBaseFragment {

    private final String TAG = "IndexFragment";

    @InjectView(R.id.task_all_layout)
    SideBarLayout taskAllLayout;
    @InjectView(R.id.taskclass_layout)
    TaskClassLayout taskclassLayout;
    @InjectView(R.id.task_layout)
    TaskLayout taskLayout;
    @InjectView(R.id.taskinfo_layout)
    TaskInfoLayout taskinfoLayout;
    private TaskContract.Presenter presenter;
    private List<TaskClass> taskClasses;

    @Override
    public int initLayoutId() {
        return R.layout.fragment_index;
    }

    @Override
    public void initPage(View view) {
        super.initPage(view);

        int width = Tools.getScreenSize(this.getActivity())[0];
        this.taskAllLayout.setPageWidth(SideBarLayout.SLIDER_PAGE_LEFT, width / 3);
        this.taskAllLayout.setPageWidth(SideBarLayout.SLIDER_PAGE_RIGHT, width);

    }


}
